﻿<Canvas x:Class="Guitar.Vues.VueNoteTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="10" Width="19"  MouseEnter="Rectangle_MouseEnter" MouseLeave="Rectangle_MouseLeave" MouseLeftButtonDown="UserControl_MouseDown" HorizontalAlignment="Left" >
    <Canvas.Resources>

        <SolidColorBrush  PresentationOptions:Freeze="True" Color="Transparent" x:Key="normal"/>

        <LinearGradientBrush PresentationOptions:Freeze="True" x:Key="selected" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FFF5F5B0" Offset="0" />
            <GradientStop Color="#DFEBEB51" Offset="1" />
        </LinearGradientBrush>


        <LinearGradientBrush PresentationOptions:Freeze="True"  x:Key="over" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#ADCBCABB" Offset="0" />
            <GradientStop Color="#B8C7A4A4" Offset="1" />
        </LinearGradientBrush>

        </Canvas.Resources>

    <Label Name="labelCase"     Width="14" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" FontSize="10" Canvas.Left="5" Canvas.Top="-2" Background="{StaticResource ResourceKey=normal}" VerticalAlignment="Center" Content="3" Height="12" >
        <Label.ContextMenu>
            <ContextMenu  Name="menu_note">
                <MenuItem Header="Changer la position de la note" ToolTip="Change la position de la note sur le manche tout en gardant exactement la hauteur de la note" />
                <MenuItem Header="Changer la note" />
                <Separator />
                <MenuItem Header="Rythme">
                    <MenuItem Header="Ronde" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/ronde.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="Blanche" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/blanche.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem  Header="Noire" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/noire.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="Croche" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/croche.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="Double croche">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/doublecroche.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem  Header="Triple croche" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/triplecroche.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem  Header="Quadruple croche" Click="MenuItemRythm_Click">
                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/quaduplecroche.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </MenuItem> 
                                <MenuItem Header="Pointure">
                    <MenuItem Header="Sans"/>
                    <MenuItem  Header="Pointure simple">

                        <MenuItem.Icon>
                            <Image Source="/Guitar;component/Images/ic/pointure.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="Double Pointure"/>
                </MenuItem>
                <Separator />
                <MenuItem Header="Liaison" />
                <MenuItem  Header="Effets">
                    <MenuItem.Icon>
                        <Image Width="16" Height="16" Source="/Guitar;component/Images/ic/kmix-256.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </ContextMenu>
            </Label.ContextMenu>
    </Label>
    <Canvas.ToolTip >
        <ToolTip Name="Tool"></ToolTip>
    </Canvas.ToolTip>
</Canvas>
